<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateScenesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('scenes', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->comment('标题')->nullable();
            $table->string('content')->comment('内容')->nullable();
            $table->string('coverimage')->comment('封面图片')->nullable();
            $table->string('bannerimage')->comment('轮播图片')->nullable();
            $table->tinyInteger('recommended')->default(0)->comment('推荐指数')->nullable();
            $table->integer('price')->default(0)->comment('门票价格')->nullable();
            $table->string('tag')->comment('标语')->nullable();
            $table->string('iphone')->comment('电话')->nullable();
            $table->string('address')->comment('地址')->nullable();
            $table->string('lanter')->comment('经纬度')->nullable();
            $table->string('introduction')->comment('景点介绍')->nullable();
            $table->string('transport')->comment('交通')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('scenes');
    }
}
